package hx.design.introduction;

/**
 * @author hx<titanrain@163.com>
 */
public class Rectangle3 {

    private int length;
    private int width;

    public Rectangle3(int length, int width) {
        this.length = length;
        this.width = width;
    }

    public int area() {
        return length * width;
    }

    public int perimeter() {
        return 2 * (length + width);
    }
}
